﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DemoObject;
using BusinessObjects;
using HTT.Utility;
public partial class Controls_NewVideo : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            LoadArticle();
        }
    }
    void LoadArticle()
    {
        int count = 0;
        HashSet<string> hs = new HashSet<string>();
        //hs.Add("DisplayOrder ASC");
        hs.Add("CreatedDate DESC");
        IList<TblVideo> ls = TblVideoRepository.CreateInstant().SelectListItem(null, null, null, "", "","",null,true,null,1,10,out count, hs);
        rpt.DataSource = ls;
        rpt.DataBind();
    }

}
